﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class mdc_Product_Hierarchy : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } }
        private string _ID;
        public static FieldInfo id = new FieldInfo("mdc_Product_Hierarchy", "ID");

        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } }
        private string _Process;
        public static FieldInfo process = new FieldInfo("mdc_Product_Hierarchy", "Process");

        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } }
        private int _Incident;
        public static FieldInfo incident = new FieldInfo("mdc_Product_Hierarchy", "Incident");

        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } }
        private string _UserName;
        public static FieldInfo userName = new FieldInfo("mdc_Product_Hierarchy", "UserName");

        [Column]
        public int No { get { return _No; } set { _No = value; EntityState.FieldChange("No"); } }
        private int _No;
        public static FieldInfo no = new FieldInfo("mdc_Product_Hierarchy", "No");

        [Column]
        public string Sub_Line { get { return _Sub_Line; } set { _Sub_Line = value; EntityState.FieldChange("Sub_Line"); } } 
        private string _Sub_Line;
        public static FieldInfo sub_Line = new FieldInfo("mdc_Product_Hierarchy", "Sub_Line");

        [Column]
        public string Product_Line { get { return _Product_Line; } set { _Product_Line = value; EntityState.FieldChange("Product_Line"); } }
        private string _Product_Line;
        public static FieldInfo product_Line = new FieldInfo("mdc_Product_Hierarchy", "Product_Line");

        [Column]
        public string Sub_Line_Des { get { return _Sub_Line_Des; } set { _Sub_Line_Des = value; EntityState.FieldChange("Sub_Line_Des"); } }
        private string _Sub_Line_Des;
        public static FieldInfo sub_Line_Des = new FieldInfo("mdc_Product_Hierarchy", "Sub_Line_Des");

        [Column]
        public string Description_in_ZH { get { return _Description_in_ZH; } set { _Description_in_ZH = value; EntityState.FieldChange("Description_in_ZH"); } }
        private string _Description_in_ZH;
        public static FieldInfo description_in_ZH = new FieldInfo("mdc_Product_Hierarchy", "Description_in_ZH");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("mdc_Product_Hierarchy", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("mdc_Product_Hierarchy", "Status");
    }
}
